package com.ct.gd.passport.view.passport;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.ct.gd.passport.R;
import com.ct.gd.passport.common.BaseActivity;
import com.ct.gd.passport.common.constants.UmengVar;
import com.ct.gd.passport.view.widget.CustomHeaderFragment;
import com.umeng.analytics.MobclickAgent;

public class PassportAppGuideActivity extends BaseActivity implements OnClickListener {

	private CustomHeaderFragment	mFgHeader;

	Button mGuideFormButton;
	Button mGuideCameraButton;
	
	@Override
	protected void onBaseCreate(Bundle savedInstanceState) {
		setContentView(R.layout.passport_app_guide);
	}

	@Override
	protected void initViews() {
		
		mFgHeader = (CustomHeaderFragment) getSupportFragmentManager().findFragmentById(R.id.header);
		mFgHeader.setCenterText(R.string.passport_submit);
		
		mGuideFormButton = (Button)findViewById(R.id.btn_passport_app_guide_form);
		mGuideCameraButton = (Button)findViewById(R.id.btn_passport_app_guide_camera);
		
		mGuideFormButton.setOnClickListener(this);
		mGuideCameraButton.setOnClickListener(this);
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.btn_passport_app_guide_form:
			MobclickAgent.onEvent(this, UmengVar.PASSPORT_SQ_INTRO);
			startActivity(new Intent(this, PassportApp1Activity.class));
			break;
		case R.id.btn_passport_app_guide_camera:
			MobclickAgent.onEvent(this, UmengVar.PASSPORT_CATPTURE);
			startActivity(new Intent(this,  PassportAppCameraActivity.class));
			break;
		default:
			break;
		}
	}

}
